#!/bin/sh

APP_PATH=build/Release/WSPluginSwitcher.app/Contents/MacOS/PluginSwitcherWorker

xcodebuild -alltargets clean -configuration Release
xcodebuild -target WSPluginSwitcher -configuration Release
chmod 6555 $APP_PATH
sudo chown root:admin $APP_PATH